<?
class appController extends controller {
    function __construct($a_request) {
        parent::__construct($a_request);
        if (isset(ss::$task[2])) ss::setTemplate(ss::$task[2].'.html');
    }
    
    public function view() {
        $isdev      = $this->request->getVar('dev', false);
        if ($isdev) $basePath   = 'pj/dev';
        else $basePath   = 'pj/v15';
        $ver        = $isdev?rand(10, 1000000):20;
        $pluginVer  = 'v05';
        $plugins    = array(
            'free'=>MAINURL.'/pj/plugins/'.($isdev?'dev/mail/':($pluginVer.'/free/')),
            'mail'=>MAINURL.'/pj/plugins/'.($isdev?'dev/mail/':($pluginVer.'/mail/'))
        );        
        require($this->templatePath);
    }

    public function clothing() {
        $isdev = $this->request->getVar('dev', false);
        if ($isdev) {
            $basePath   = 'clothing/dev';
            $ver        = rand(0, 10000000);
        } else {
            $basePath   = 'clothing/com/v07';
            $ver        = 5;
        }        
        $this->groupID = '54129139712019';
        require($this->templatePath);
    }
    
    public function collages() {
        require($this->templatePath);
    }
    
    public function clothingDEV() {
        $isdev                  = $this->request->getVar('dev', false);
        if ($isdev) {
            $basePath   = 'clothing/dev';
            $ver        = rand(0, 10000000);
        } else {
            $basePath   = 'clothing/com/v07';
            $ver        = 1;
        }
        require($this->templatePath);
    }
    
    public function gapi_pj() {
        require($this->templatePath);
    }
    
    public function pjm() {
        $isdev                  = $this->request->getVar('dev', false);
        if ($isdev) {
            $basePath   = 'pjm/dev';
            $ver        = rand(0, 10000000);
        } else {
            $basePath   = 'pjm/of/v01';
            $ver        = 2;
        }
        require($this->templatePath);
    }
}    
?>